import '@/official'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from '@/store'
import '@/styles/index.scss'
import { plugin, layer } from '@/components/vue2-layer-mobile'
Vue.use(plugin)
import '@/permission'
import MetaInfo from 'vue-meta-info'
Vue.use(MetaInfo)
import infiniteScroll from 'vue-infinite-scroll'
Vue.use(infiniteScroll)
import VueSkeletonLoading from '@/components/VueSkeletonLoading'
Vue.use(VueSkeletonLoading)
Vue.config.productionTip = false
import flv from 'flv.js'
window.flvjs = flv
import '@/icons'
//fix h5 滚动边界行为
import overscrollBehavior from '@/directive/overscroll-behavior'
Vue.directive('overscroll-bahavior', overscrollBehavior)
//fix 图片加载异常显示默认图片
import imgError from '@/directive/image-error'
Vue.directive('img-error', imgError)
import * as Sentry from '@sentry/browser'
import * as Integrations from '@sentry/integrations'
if(process.env.NODE_ENV === 'production'){
	Sentry.init({
	  dsn: 'https://703afe73d32149edaaafb3dc99900409@sentry.9ox.cn/3',
	  integrations: [new Integrations.Vue({Vue, attachProps: true})],
	});
}
export default new Vue({
	el:'#app',
  router,
	store,
  render: h => h(App)
})
